package com.dotflat.safe.po;

import com.dotflat.rest.PO.AreableObjectBasePO;
import com.dotflat.rest.utils.LikeableField;
import com.dotflat.rest.utils.RangeField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/7/13
 * *******************************
 */

@Data
@EqualsAndHashCode(callSuper=false)
@ApiModel("消毒和卫生检查记录")
public class SterilizationRecordPO extends AreableObjectBasePO {
 
    @ApiModelProperty("巡检类型， 0：手选目标，  1：扫码目标")
    private Integer targetType;

    @ApiModelProperty("消毒目标id")
    private String targetId;

    @ApiModelProperty("消毒目标名字")
    @LikeableField
    private String targetName;

    @ApiModelProperty("操作员Id")
    private String operatorId;

    @ApiModelProperty("操作员名字")
    @LikeableField
    private String operatorName;

    @ApiModelProperty("完整报告内容")
    private String content;

    @ApiModelProperty("媒体文件类型 1：图片，2：视频")
    private Integer mediaType ;

    @ApiModelProperty("媒体文件地址")
    private String resourceUrl;

    @RangeField(value = "created")
    @ApiModelProperty("创建时间查询左值")
    private Date createdLeft;

    @RangeField(value = "created", eq = false, operator = '<')
    @ApiModelProperty("创建时间查询右值")
    private Date createdRight;
}
